<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN" 
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="cn.firstsoft.modules.workTask.domain.WorkTaskFileAttach" table="work_task_file_attach">
     <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				         <param name="sequence">WORK_TASK_FILE_ATTACH_ID_SEQ</param>
            </generator>
     </id>
        <property name="fileName" type="string">
               <column name="file_name" length="50" />
        </property>
        <property name="formerFileName" type="string">
               <column name="former_file_name" length="50" />
        </property>
         <property name="createDate" type="timestamp">
               <column name="create_date"/>
        </property>
        <property name="extName" type="string">
               <column name="ext_name"/>
        </property>
        <property name="fileSize" type="integer">
               <column name="file_size"/>
        </property>
         <many-to-one name="createUser" class="org.springside.modules.security.domain.User" fetch="select">
            <column name="create_userid"/>
        </many-to-one> 
        <many-to-one name="workTaskFile" class="cn.firstsoft.modules.workTask.domain.WorkTaskFile" fetch="select">
            <column name="work_task_file_id"/>
        </many-to-one>
        <!--
            To add non XDoclet property mappings, create a file named
                hibernate-properties-WorkTaskFile.xml
            containing the additional properties and place it in your merge dir.
        -->
    </class>

</hibernate-mapping>
